<extend name="Public/base"/>

<block name="body">
<style>
.input-large {
    width: 80px;
}
.yj_sun{ width:100%; float:left; line-height:50px;}
.yj_sun span{ padding:0 20px;}
.form-horizontal .form-item { margin-bottom: 5px; float:left; }
.form-horizontal .controls { overflow: hidden; padding: 5px 5px 5px 0;    float: left;}
.input-large { width: 80px; }


</style>
	<div class="main-title">
		<h2>{$info['id']?'编辑':'新增'}业绩</h2>
	</div>
	<form action="{:U()}" method="post" class="form-horizontal">
		
		<volist name="info.target" id="mon" key="k">
			<div class="form-item">
				<label class="item-label">{$k}月</label>
				<div class="controls">
					<input type="text" class="text input-large yj" name="monthly[]" value="{$mon|default=0}">
				</div>
			</div>
		</volist>
		<div class="yj_sun">总金额<span>{$info['amount']}</span>元</div>
		<div class="form-item">
			<input type="hidden" name="id" value="{$info.id|default=''}">
			<input type="hidden" name="uid" value="{$info.uid}">
			<input type="hidden" name="performance_id" value="{$info.performance_id}">
			<button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
			<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>
	</form>
</block>

<block name="script">
	<script type="text/javascript">
	$(".yj").blur(function(){
		 var n=0;
		$(".yj").each(function(b) {
        var m=$(".yj").eq(b).val()
		
		  n+=parseInt(m)
        });
		 $(".yj_sun span").text(n+".00")
	
		})
	
	
//		Think.setValue("type", {$info.type|default=0});
//		Think.setValue("group", {$info.group|default=0});
//		//导航高亮
//		highlight_subnav('{:U('Config/index')}');
	</script>
</block>
